const moment = require('moment');
const dt = moment().format('YYYY---MM---DD hh:mm:ss ');
console.log(dt);